package com.zhku.yygh.user.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @BelongsProject: yygh-parent
 * @BelongsPackage: com.zhku.yygh.hosp.config
 * @Author: "deweyMDH"
 * @CreateTime: 2023-05-03  14:50
 * @Version: 1.0
 */
@Configuration
@MapperScan(value = "com.zhku.yygh.user.mapper")
public class userConfig {
    /**
     * @description: 分页插件，这个类是用来正确封装page的
     **/
    @Bean
    public PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }
}
